import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加入党积极分子
export function addPartyActivists(data) {
  return request({
    url: baseUrl + "/pc/party-activists",
    method: "post",
    data
  });
}

//查询入党积极分子
export function getPartyActivists(data) {
  return request({
    url: baseUrl + "/pc/party-activists",
    method: "get",
    params: data
  });
}

//删除入党积极分子
export function deletePartyActivists(data) {
  return request({
    url: baseUrl + "/pc/party-activists",
    method: "delete",
    data
  });
}

//更新入党积极分子
export function updatePartyActivists(data) {
  return request({
    url: baseUrl + "/pc/party-activists",
    method: "put",
    data
  });
}

//导入入党积极分子
export function importPartyActivists(data) {
  return request({
    url: baseUrl + "/pc/party-activists",
    method: "post",
    data
  });
}